Get Parameters of Color Identification Objects from Pixy Camera
Function:
magicbox.get_pixy_camera_obj(port,color,coordinate)Description: get parameters of color identification objects from Pixy camera
Required parameter:
- port: port, range: 1~6
- color: color, range: 1~7
- coordinate: coordinate axis, range: 1~4 (1 represents x, 2 represents y, 3 represents l, 4 represents z)
- Return:
- color: color
- coordinate: corresponding coordinates
Example
magicbox.get_pixy_camera_obj(port=1,color=1,coordinate=1)Get coordinates of the color displayed on Pixy camera connected to Port 1.